package cn.tedu.mapper;

import cn.tedu.pojo.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper {
    public List<Dept> findAll();
    //注解会自动帮咱们两个参数封装到map中
    public void changeState(@Param("state") int state, @Param("deptId") String deptId);

    void deleteDeptByIds(String[] deptIds);

    void saveDept(Dept dept);

    Dept findOneById(String deptId);

    void updateDept(Dept dept);
}
